home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / nint.z / nint
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  60 lines

  1. NINT(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      NNIINNTT, IIDDNNIINNTT, IIQQNNIINNTT - Converts to nearest integer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      NNIINNTT (([AA==]_a [,,[KKIINNDD==]_k_i_n_d]))
  9.      IIDDNNIINNTT (([AA==]_a))
  10.      IIQQNNIINNTT (([AA==]_a))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, IRIX systems
  14.  
  15.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  16.  
  17. SSTTAANNDDAARRDDSS
  18.      Fortran
  19.  
  20.      Fortran extension:  IIQQNNIINNTT
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      NNIINNTT is the generic function name; the others are specifics.  These
  24.      are elemental intrinsic functions.  They accept the following
  25.      arguments:
  26.  
  27.      _a         Must be type real.  See the RETURN VALUES section for
  28.                information on input data types and return values.
  29.  
  30.                The data type and kind type for single-precision,
  31.                double-precision, and quad-precision values differ depending
  32.                on your platform.  For platform-specific information, see
  33.                the TERMINOLOGY section of the IINNTTRROO__IINNTTRRIINN(3I) man page.
  34.  
  35.      _k_i_n_d      An integer scalar value.  Must be a kind type allowed for _x.
  36.                This argument is not accepted by the MIPSpro Fortran 77
  37.                compiler.
  38.  
  39.      These functions find the nearest integer for real numbers, using these
  40.      equations:
  41.  
  42.           _y = IINNTT((_x+.5)) if _x >= 0
  43.  
  44.           _y = IINNTT((_x-.5)) if _x < 0
  45.  
  46. NNOOTTEESS
  47.      The NNIINNTT and IIDDNNIINNTT intrinsic function names can be passed as
  48.      arguments; the other cannot.
  49.  
  50. RREETTUURRNN VVAALLUUEESS
  51.      NNIINNTT returns the nearest integer for its real argument.
  52.  
  53.      IIDDNNIINNTT returns the nearest integer for its double-precision argument.
  54.  
  55.      IIQQNNIINNTT returns the nearest integer for its quad-precision argument.
  56.  
  57. SSEEEE AALLSSOO
  58.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  59.      man page.
  60.